package zy2;

import java.util.Arrays;
import java.util.Scanner;

/*
*2.将考试成绩排序并输出，返回成绩的个数
* */
public class Scores {

    int[] scores = {88,99,100,66,77};

    public void grade(){
            Arrays.sort(scores);
            System.out.println(Arrays.toString(scores));
            int num = scores.length;
        System.out.println("数组长度为:"+num);
    }

    public static void main(String[] args) {
        Scores score = new Scores();
        score.grade();
    }
}